package yhb.component

import java.util.{Calendar, Date}

/**
 * Created by root on 15-8-7.
 */
object ProjectDef {

  def addDate(date:Date,add:Int)= {
    val calendar = Calendar.getInstance()
    calendar.setTimeInMillis(date.getTime)
    val day = calendar.get(Calendar.DATE)
    calendar.set(Calendar.DATE,day+add)
    calendar.getTime
  }

}
